package com.klz.consumer.rpc;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by kongzheng on 2017/6/19.
 * Created with IntelliJ IDEA.
 */
@FeignClient(value = "hello-service", configuration = FeignClientConfig.class)
@RequestMapping("/api")
public interface HelloClient {

    @RequestMapping(value = "hello", method = RequestMethod.GET)
    String sayHello(@RequestParam("name") String name) throws Exception;
}
